1.cnpm init -y
2.cnpm i  webpack 
          webpack-dev-server 
          css-loader url-loader 
          style-loader 
          html-webpack-plugin 
          file-loader 
          extract-text-webpack-plugin  
          clean-webpack-plugin
          webpack-zepto 
          vue 
          vue-hot-reload-api 
          vue-html-loader 
          vue-loader 
          vue-resource 
          vue-router 
          vue-style-loader 
          babel 
          babel-core 
          babel-loader  
          babel-plugin-transform-runtime 
          babel-preset-es2015 
          babel-runtime --save-dev
3.webpack.config.js